import { defineStore } from 'pinia';


export const useGlobalNetworkImageStore = defineStore('globalNetworkImage', {
	state: () => {
		return {
			value: {
				personTopImg: '', //个人主页顶部背景图
				personMoneyImg: '', //个人主页钱包背景图
				MoneyTopImg: '', //我的钱包顶部背景图
				phbTopImg: '', //邀请排行榜头部背景图
				teamTopImg: '', //团队业绩顶部背景图
			}
		};
	},
	actions: {
		setData(value) {
			for (let key in value) {
				this.value[key] = value[key]
			}
		},
		// 将state 重置为初始值
		claerData() {
			this.$reset();
		},
	},
});